import React, {Component} from 'react';

class Order extends Component {
    state = {
        title: '',
    }

    componentDidMount() {
        this.initData();
    }

    initData() {
        this.setState({
            title: '订单'
        })
    }

    render() {
        return (
            <main>
                <h4 className="test">{this.state.title}</h4>
            </main>
        );
    }
}

export default Order;